package com.matt.foundation.vo.course;

import com.matt.foundation.DO.ChildrenCourseItemDO;
import lombok.Data;

/**
 * *******************************
 * Created by Ron.
 * form com.matt
 * on 2018/3/20
 * *******************************
 */
@Data
public class PadChildrenStatusListsVo {
    private String name;
    private Integer status;
    private String childrenCourseItemId;

    public static PadChildrenStatusListsVo of(ChildrenCourseItemDO item){
        PadChildrenStatusListsVo vo = new PadChildrenStatusListsVo();
        vo.setName(item.getName());
        vo.setStatus(item.getStatus());
        vo.setChildrenCourseItemId(item.getId());
        return vo;
    }
}
